//
//  UIViewController+HUD.h
//  MobileEnergy
//
//  Created by zhiwei.ma on 14-8-15.
//  Copyright (c) 2014年 Payegis Inc. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController (HUD)

/**
 *  等待
 *
 *  @param lock 界面是否加锁（userinterface）
 */
- (void)showWaiting:(BOOL)lock;
- (void)showWaiting:(NSString *)message Lock:(BOOL)lock;
/**
 *  提示成功
 *
 *  @param success 提示信息
 */
- (void)showSuccess:(NSString *)success;

-(void)showSuccess:(NSString *)success completionBlock:(void(^)())completionBlock;
/**
 *  提示失败
 *
 *  @param error 提示信息
 */
- (void)showError:(NSString *)error;

-(void)showError:(NSString *)error completionBlock:(void(^)())completionBlock;
/**
 *  隐藏等待
 */
- (void)hideWaiting;

@end
